<?php
include_once "../common/header.php";
?>
<script type="text/javascript">
        function update_m1()
	{
		var chatdiv = document.getElementById("m1box");
		chatdiv.innerHTML = '<p style="color:black">' + document.m1_input.m1_text.value + '</p>';

		document.m1_input.m1_text.value = "";
		return false;
	}
        function update_m2()
	{
		var chatdiv = document.getElementById("m2box");
		chatdiv.innerHTML = '<p style="color:black">' + document.m2_input.m2_text.value + '</p>';

		document.m2_input.m2_text.value = "";
		return false;
	}
</script>
<div id="m1box" style="width:25%; text-align:center;">
	<p style="color:black;">Enter the start time of the exam in the box below</p>
</div>
<form id="m1_input" name="m1_input" onsubmit="return update_m1();"
    <table width="100%" valign="bottom">
	<tr>
            <td width="80%"><input style="border:2px solid #000; width:25%;" type="text" id="m1_text" name="m1_text" /></td>
	</tr>
    </table>
</form>
<br /><br />

<div id="m2box" style="width:25%; text-align:center;">
	<p style="color:black;">Enter the end time of the exam in the box below</p>
</div>
<form id="m2_input" name="m2_input" onsubmit="return update_m2();"
    <table width="100%" valign="bottom">
	<tr>
            <td width="80%"><input style="border:2px solid #000; width:25%;" type="text" id="m2_text" name="m2_text" /></td>
	</tr>
    </table>
</form>
<br /><br />

<form action="../instructor_exam/index.php">
    <input type="submit" class="fancybutton" value="Save Times" />
</form>

<?php
include_once "leftcol.php";
include_once "rightcol.php";
include_once "../common/footer.php";
?>